package cn.echoedu.ssm.Test;

import java.util.List;

import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import cn.echoedu.ssm.po.User;
import cn.echoedu.ssm.service.UserService;

public class SSMtest extends UserService{
	@Test
	public void test() {
		ApplicationContext applicationContext = new ClassPathXmlApplicationContext("spring/applicationContext.xml");
		UserService userService = (UserService)applicationContext.getBean("userService");
		List<User> list = userService.selectAll();
		for (User user : list) {
			System.out.println(user);
              System.out.println(user);
              System.out.println("*****");
		}
	}

}
